package com.itheima.juc03;

/**
 * @author li
 * 子类继承Thread类
 */
public class MyThreadThread extends Thread{
    @Override
    public void run() {
        // 书写现场要执行的代码
        for (int i = 0; i < 100; i++) {
            System.out.println(getName() + "hello world" + i);
        }
    }
}
